﻿using Simple.Tools;
using Simple.Tools.Verify;
using SqlSugar;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSaas.Entity.Dto
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	public class SysDepartmentDto:IParameterVerify
	{
		/// <summary>
		/// 部门id
		/// </summary>
		[SwaggerSchema(Description = "部门id")]
		public string Id { get; set; }
		/// <summary>
		/// 部门负责人
		/// </summary>
		[SwaggerSchema(Description = "部门负责人")]
		[CusRequired("部门负责人")]
		public string Name { get; set; }

		/// <summary>
		/// 父节点id
		/// </summary>
		[SwaggerSchema(Description = "父节点id")]
		[MapTo(typeof(long))]
		public string ParentId { get; set; }

		/// <summary>
		/// 企业id
		/// </summary>
		[SwaggerSchema(Description = "企业id")]
		[MapTo(typeof(long))]
		[CusRequired("企业id")]
		public string TenantId { get; set; }

		/// <summary>
		/// 是否是部门负责人
		/// </summary>
		[SwaggerSchema(Description = "是否是部门负责人")]
		public bool OwnerFlag { get; set; }
	}
}
